package com.dds.system.service.sys.impl;

import java.util.List;

import com.dds.system.domain.sys.SysMqServiceRecord;
import com.dds.system.mapper.sys.SysMqServiceRecordMapper;
import com.dds.system.service.sys.ISysMqServiceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 队列任务处理日志Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-12
 */
@Service
public class SysMqServiceRecordServiceImpl implements ISysMqServiceRecordService
{
    @Autowired
    private SysMqServiceRecordMapper sysMqServiceRecordMapper;

    /**
     * 查询队列任务处理日志
     * 
     * @param id 队列任务处理日志ID
     * @return 队列任务处理日志
     */
    @Override
    public SysMqServiceRecord selectSysMqServiceRecordById(Integer id)
    {
        return sysMqServiceRecordMapper.selectSysMqServiceRecordById(id);
    }

    /**
     * 查询队列任务处理日志列表
     * 
     * @param sysMqServiceRecord 队列任务处理日志
     * @return 队列任务处理日志
     */
    @Override
    public List<SysMqServiceRecord> selectSysMqServiceRecordList(SysMqServiceRecord sysMqServiceRecord)
    {
        return sysMqServiceRecordMapper.selectSysMqServiceRecordList(sysMqServiceRecord);
    }

    /**
     * 新增队列任务处理日志
     * 
     * @param sysMqServiceRecord 队列任务处理日志
     * @return 结果
     */
    @Override
    public int insertSysMqServiceRecord(SysMqServiceRecord sysMqServiceRecord)
    {
        return sysMqServiceRecordMapper.insertSysMqServiceRecord(sysMqServiceRecord);
    }

    /**
     * 修改队列任务处理日志
     * 
     * @param sysMqServiceRecord 队列任务处理日志
     * @return 结果
     */
    @Override
    public int updateSysMqServiceRecord(SysMqServiceRecord sysMqServiceRecord)
    {
        return sysMqServiceRecordMapper.updateSysMqServiceRecord(sysMqServiceRecord);
    }

    /**
     * 批量删除队列任务处理日志
     * 
     * @param ids 需要删除的队列任务处理日志ID
     * @return 结果
     */
    @Override
    public int deleteSysMqServiceRecordByIds(Integer[] ids)
    {
        return sysMqServiceRecordMapper.deleteSysMqServiceRecordByIds(ids);
    }

    /**
     * 删除队列任务处理日志信息
     * 
     * @param id 队列任务处理日志ID
     * @return 结果
     */
    @Override
    public int deleteSysMqServiceRecordById(Integer id)
    {
        return sysMqServiceRecordMapper.deleteSysMqServiceRecordById(id);
    }
}
